{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### ollama（模型推理框架个人级别）"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 使用教程\n",
    "\n",
    "1. 安装ollama\n",
    "\n",
    "git clone https://github.com/jmorganca/ollama.git\n",
    "cd ollama\n",
    "cargo install --path .\n",
    "\n",
    "2. 启动ollama服务\n",
    "\n",
    "ollama serve\n",
    "\n",
    "3. 创建文件ModelFile的meta文件\n",
    "\n",
    "文件内容\n",
    "FROM gguf的文件路径\n",
    "\n",
    "4. 使用命令创建自定义模型\n",
    "\n",
    "ollama create ModelName --file ./ModelFile\n",
    "\n",
    "5. 查看本地模型模型\n",
    "\n",
    "ollama list\n",
    "\n",
    "6. 启动模型\n",
    "\n",
    "ollama run ModelName"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
